<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>入力ページ(formmail)</title>
<%include file="_meta.html"/>
<% f = formmail.get(key) %>
%if f.get('formcss') == 'True':
<link href="/common/css/form.css" rel="stylesheet">
%endif
</head>
<body class="free">

<!-- page header xx start -->
<header class="noprint">
<%include file="_header.html" />
</header>
<!-- page header xx end -->
<div id="headline"></div>

<div id="container">

    <div id="contents" class="clearfix">

    <div class="paneoform document">
    <%include file="formmail_${key}_hed.html" args="f=f"/>
    <!-- paneo form xx start -->
    <% PARAM = web.ctx.session.get('redirect_param',{}).get('OSUSUME',{}) %>
    <% contents = AT.GetPostById( PARAM.get("OSUSUME_ID") ) %>
    %if contents :
    <% 
        posts = AT.GetPostsByKey('builder',str(contents.key))
        company = ""
    %>
    %for c in posts:
    <% company = c.GetField('name') %>
    %endfor
    <form name="${key}_form" action="/forms/formmail_${key}_conf.html" method="POST">
    <ul>
        <li>
             <h2>${f.get('name')}</h2>
             <span class="required_notification">* 必須入力</span>
        </li>
        <li>
            <label for="osusume_name">お問い合わせ物件</label>
            <fieldset data-paneo-form="osusume_name" data-paneo-form-required="True">
            <input type="hidden" name="osusume_name" value="${contents.title}"/>
            <div>${contents.title}</div>
            </fieldset>
        </li>
        <li>
            <label for="company">物件管理会社</label>
            <fieldset data-paneo-form="company" >
            <input type="hidden" name="company" value="${company}"/>
            <div>${company}</div>
            </fieldset>
        </li>
        
        <%include file="sogokan_name_field.html"/>

        <li>
            <label for="call">ご希望の連絡方法</label>
            <fieldset data-paneo-form="call" data-paneo-form-required="True">
            <input type="radio" name="call" value="メール" checked/>メール
            <input type="radio" name="call" value="電話"/>電話
            </fieldset>
        </li>

        <li>
            <fieldset class="send">
            <button class="submit" type="submit" name="CMD_CONF">送信確認</button>
            <button class="cancel" type="reset">キャンセル</button>
            </fieldset>
        </li>
    </ul>
    </form>
    </div>
    %endif
    <!-- paneo form xx end -->
    <%include file="formmail_${key}_ftr.html" args="f=f"/>

    </div><!-- /#contents -->

</div><!-- /#container -->
<!-- page footer -->
<%include file="_footer.html"/>
<%include file="_anchor_navi.html"/>

</body>
</html>



